# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-pymeeus
pkgver=0.5.11
pkgrel=1
pkgdesc="Python implementation of Jean Meeus astronomical routines"
url="https://github.com/architest/pymeeus"
arch="noarch"
license="LGPL-3.0-or-later"
depends="
	py3-atomicwrites
	py3-attrs
	py3-funcsigs
	py3-more-itertools
	py3-pathlib2
	py3-pluggy
	py3-py
	py3-six
	python3
	"
makedepends="py3-setuptools"
checkdepends="
	py3-coverage
	py3-flake8
	py3-mccabe
	py3-pycodestyle
	py3-pyflakes
	py3-pytest
	py3-pytest-cov
	"
source="https://pypi.python.org/packages/source/P/PyMeeus/PyMeeus-$pkgver.tar.gz"
builddir="$srcdir/PyMeeus-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
9c109a7ed0ff3635e8b1eb4ee444bc5086528169fc942719385b02c5d5eca1f1ec3d3988bb06140e94f3d4ab741473880d8a36e187c468b9b91a3254575b92e6  PyMeeus-0.5.11.tar.gz
"
